
libcommontools.a:sparsevector.o stemmer.o dict.o stdafx.o myutil.o uchardet.o
	ar cr libcommontools.a *.o 

sparsevector.o: sparsevector.cpp sparsevector.h
	$(cc) -c sparsevector.cpp -I$(BOOST_INC_PATH)

stemmer.o: stemmer.cpp myutil.h
	$(cc) -c stemmer.cpp -I$(BOOST_INC_PATH) 

dict.o: dict.cpp myutil.h stdafx.h
	$(cc) -c dict.cpp -I$(BOOST_INC_PATH)

stdafx.o: stdafx.cpp stdafx.h
	$(cc) -c stdafx.cpp -I$(BOOST_INC_PATH)

myutil.o : myutil.cpp myutil.h
	$(cc) -c myutil.cpp -I$(BOOST_INC_PATH) 

uchardet.o: uchardet.cpp uchardet.h uchardet/*.cpp uchardet/*.h
	$(cc) -c uchardet.cpp uchardet/*.cpp

.PHONY: clean
clean:
	-rm *.o libcommontools.a


